package salesSystem.model;

// 订单项实体类
public class OrderItem {
    private String productId;
    private String productName;
    private int quantity;
    private double unitPrice;

    public OrderItem(String productId, String productName, int quantity, double unitPrice) {
        this.productId = productId;
        this.productName = productName;
        this.quantity = quantity;
        this.unitPrice = unitPrice;
    }

    // Getters
    public String getProductId() { return productId; }
    public String getProductName() { return productName; }
    public int getQuantity() { return quantity; }
    public double getUnitPrice() { return unitPrice; }
    public double getItemTotal() { return quantity * unitPrice; }
}